
package com.cx.bank.dao;

import java.io.IOException;
import java.util.List;
import com.cx.bank.actionsforms.LoginAndRegisterActionForm;
import com.cx.bank.hibernateModel.PageModel;
import com.cx.bank.model.MoneyBean;
import com.cx.bank.model.UserBean;

public interface BankDaoInterface {

	// 注册方法
	public abstract Boolean register(UserBean user) throws IOException;;

	// 登陆方法
	public abstract Boolean login(UserBean user) throws IOException;;

	// 本账号数据库信息配置保存
	public void savaInformation(UserBean user, MoneyBean money) throws IOException;

	// 转入账号数据库信息配置保存
	public Boolean savaInformation2(String user, Double money) throws IOException;

	// 保存用户的存取款操作记录
	public void savaTransactionDetials2(String name, String transaction_details, String transaction_time)
			throws IOException;

	// 保存用户的转账操作记录
	public void savaTransactionDetials(String name, String transfername, String transaction_details,
			String transaction_details2, String transaction_time) throws IOException;

	// 从数据库中查询交易明细
	public List<?> inquiryDetials(String name);
	
	// 从数据库中查询交易明细--分页
	public PageModel findAllTransaction(int pageNo, int pageSize, String name,String orderby);
}